package com.example.minesweepers;

import android.graphics.Color;
import android.widget.ToggleButton;

public class NumbersColourFactory {
	
	public static void setApropriateColor(ToggleButton button, int number) {
		switch (number) {
		case 0:
			break;
		case 1:
			button.setTextColor(Color.CYAN);
			break;
		case 2:
			button.setTextColor(Color.GREEN);
			break;
		case 3:
			button.setTextColor(Color.LTGRAY);
			break;
		case 4:
			button.setTextColor(Color.YELLOW);
			break;
		case 5:
			button.setTextColor(Color.MAGENTA);
			break;
		case 6:
			button.setTextColor(Color.RED);
			break;
		case 7:
			button.setTextColor(Color.RED);
			break;
		case 8:
			button.setTextColor(Color.WHITE);
			break;
		default:
			button.setTextColor(Color.BLACK);
			break;
		}
	}
}
